#pragma once 

#include "Protocol.hpp"


class Task{
private:
    int _sock;
    CallBack _handler;
public:
    Task(){}
    Task(int sock):_sock(sock)
    {}

    //处理任务
    void ProcessOn()
    {
        _handler(_sock);
    }
    ~Task()
    {}

};